package com.iscas.imchat.sso;

/**
 * Author: zhd
 * Data: 2022/6/1
 */

public class TokenReqMessage {
    // 1为请求token 回复时置2
    private int requestType;
    // uid
    private String uid;
    //password
    private String password;
    // token
    private String token;
    // 对于注册服务 无错误为0，id不存在为1
    // 对于验证服务 验证通过为0，验证通过但需更新为1，token无效为2
    private int returnValue;

    public int getRequestType() {
        return requestType;
    }

    public void setRequestType(int requestType) {
        this.requestType = requestType;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getReturnValue() {
        return returnValue;
    }

    public void setReturnValue(int returnValue) {
        this.returnValue = returnValue;
    }

    TokenReqMessage(int type, String uid, String password, String token, int returnValue){
        this.requestType = type;
        this.uid = uid;
        this.password = password;
        this.token = token;
        this.returnValue = returnValue;
    }

    @Override
    public String toString() {
        return "TokenReqMessage{" +
                "requestType=" + requestType +
                ", uid=" + uid + '\'' +
                ", password=" + password + '\'' +
                ", token=" + token + '\'' +
                ", returnValue=" + returnValue + '\'' +
                '}';
    }
}
